<template>
  <div class="js-cmds">
    <!-- 命令区域 -->
    <button @click="executeCommand">执行命令</button>
    <p v-if="output">{{ output }}</p>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const output = ref<string | null>(null)

const executeCommand = () => {
  // 模拟执行命令
  output.value = '命令已执行！'
}
</script>

<style scoped>
.js-cmds {
  padding: 1rem;
}
</style>